<?php
/**
 * config.php - Configuration file for IceStorm
 *
 * Modify the constants and variables according to your environment.
 *
 * @category   babel
 * @package    BABEL
 * @author     Magnus Jonsson <magnus.jonsson@codealliance.se>
 * @copyright  2008 Team babel
 * @license    LGPL
 */

define('_ICE_TITLE','Babel');
define('_ICE_DIR','/usr/local/expono/');
define('_ICE_URI','/');
define('_ICE_TEMPLATE','icestorm');
define('_ICE_IMAGE_URL','/themes/'._ICE_TEMPLATE.'/images/');
define('_ICE_CSS_URL','/themes/'._ICE_TEMPLATE.'/');
define('_ICE_JS_URL','/js/');
define('_ICE_DATE_STYLE','Y-m-d');
define('_ICE_DATETIME_STYLE','Y-m-d H:i:s');
define('_ICE_LIVE_SERVER',false);
define('_ICE_DSN','mysqli://username:password@localhost/ctt');
define('_ICE_NOREPLY_EMAIL','noreply@example.com');
define('_ICE_SUPPORT_EMAIL','support@example.com');
define('_ICE_SYSADMIN_EMAIL','sysadmin@example.com');
define('_ICE_DB_TABLE_PREFIX','babel_');
define('_ICE_GOOGLE_ANALYTICS_CODE',false);
define('_ICE_APP_LOGFILE_PATH','/var/log/babel/babel.log');//*nix
//define('_ICE_APP_LOGFILE_PATH','/wamp/tmp/babel.log');//Win

$_ICE_REQUIRE_SSL = FALSE;

$_SUPPORTED_LANGUAGES=array('en','se');

$_SUPPORTED_PLATFORMS=array('linux','mac','windows');


/**
 * Force HTTPS if required
 */

if($_ICE_REQUIRE_SSL && (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on"))
{
        if (stripos($_SERVER["REQUEST_URI"],'public/') === false) {
                $newurl = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
                header("location: $newurl");
        }
}


/**
 * DEBUG and ALPHA/BETA Flags
 */

define('_ICE_DEBUG', TRUE);
define('_ICE_DEBUG_EMAIL_SCREENDUMP', TRUE);
define('_ICE_DEBUG_TRANSLATION', TRUE);

define('EXPONO_AUTH_URI', "http://api.expono.com/...");
define('EXPONO_LOGIN_URI', "http://alpha.expono.com/..");
define('BABEL_UPLOAD_DIRECTORY', _ICE_DIR . "upload/");

